package com.weishu.house.mapper;

import com.weishu.house.entity.CwReceiptPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 收款计划表 Mapper 接口
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
public interface CwReceiptPlanMapper extends BaseMapper<CwReceiptPlan> {
    /**
     * 查询收款计划
     *
     * @param id 收款计划ID
     * @return 收款计划
     */
    public CwReceiptPlan selectCwReceiptPlanById(Long id);

    /**
     * 查询收款计划列表
     *
     * @param CwReceiptPlan 收款计划
     * @return 收款计划集合
     */
    public List<CwReceiptPlan> selectCwReceiptPlanList(CwReceiptPlan CwReceiptPlan);

    /**
     * 新增收款计划
     *
     * @param CwReceiptPlan 收款计划
     * @return 结果
     */
    public int insertCwReceiptPlan(CwReceiptPlan CwReceiptPlan);

    /**
     * 修改收款计划
     *
     * @param CwReceiptPlan 收款计划
     * @return 结果
     */
    public int updateCwReceiptPlan(CwReceiptPlan CwReceiptPlan);

    /**
     * 删除收款计划
     *
     * @param id 收款计划ID
     * @return 结果
     */
    public int deleteCwReceiptPlanById(Long id);

    /**
     * 批量删除收款计划
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteCwReceiptPlanByIds(Long[] ids);
}
